{% extends 'sims/base.html' %}

{% block title %}
    历史活动
{% endblock %}

{% block description %}
    历史活动
{% endblock %}

{% block navbar_top %}
    <a class="nav-item nav-link active" href="{% url 'sims:schedule' %}">历史活动</a>
{% endblock %}

{% block body_content %}
    <h5 class="page-header" style="margin-top: 20px"></h5>
    {% if finished_item %}
        <ul>
            {% for foo in finished_item %}
                <li>于<strong>{{ foo.happen_date }}</strong>{{ foo.history_type }}日程: {{ foo.thing_finished }}</li>
            {% endfor %}
        </ul>
    {% else %}
        <p>暂无历史活动</p>
    {% endif %}
{% endblock %}

{% block navbar_left %}
    <div class="navbar-nav">
        <a class="nav-item nav-link" href="{% url 'sims:index' %}">主页</a>
        <a class="nav-item nav-link" href="{% url 'sims:schedule' %}">日程安排</a>
        <a class="nav-item nav-link" href="{% url 'sims:to_do' %}">待办事项</a>
        <a class="nav-item nav-link active" href="{% url 'sims:history' %}">历史活动</a>
        <a class="nav-item nav-link" href="{% url 'sims:user_control' %}">个人中心</a>
    </div>
{% endblock %}